home *** CD-ROM | disk | FTP | other *** search
- <%@ page language="java" import="
- com.jproxy.site.ejbeans.interfaces.*,
- com.jproxy.site.*"
- %>
- <jsp:useBean id="ses" scope="session" class="com.jproxy.site.JSPSession"/>
- <%
- ses.request(pageContext);
- %>
-
- <%
- ICustomer account = ses.getLogin();
- String customerName = account.getCustomerName();
- String customerID = account.getID();
- int totalLicenses = 0;
- Vector formulas = ses.session.getSaleFormulas(customerID);
- %>
-
- <!-- HEADER -->
- <jsp:include page="../header.jsp" flush="true">
- <jsp:param name="name" value="JProxy Tunnel Login"/>
- </jsp:include>
-
- <center>
- <%=customerName%><br><br>
- My Customers:
- </center>
- <br><br>
-
- <%
- Vector customers = ses.session.getCustomers(customerID);
- if(customers.size()>0)
- {
- %>
- <table width=100% border=0>
- <%
- boolean isDark = false;
- for(int i=0; i<customers.size(); i++)
- {
- String tableBorder = (isDark = !isDark) ? "tableRowDark" : "tableRowLight";
- ICustomer customer = (ICustomer)customers.elementAt(i);
- %>
- <tr id=<%=tableBorder%>>
- <td valign="top" width=130>
- <a href="<%=JSPRes.path%>/main/customers/acedit.jsp?key=edit&customer-id=<%=customer.getID()%>">Customer Name:</A><br>
- Customer Details:<br>
- Purchased licenses:
- </td>
- <td valign="top" width=360>
- <a href="<%=JSPRes.path%>/main/customers/acedit.jsp?key=edit&customer-id=<%=customer.getID()%>"><%=customer.getCustomerName()%></A><br>
- <%=customer.getDetails()%>
- </td>
- <%
- if(formulas.size()>0)
- {
- %>
- <td valign="top">
- <form method=POST action="<%=JSPRes.path%>/main/customers/buy.jsp">
- <INPUT TYPE=HIDDEN NAME="customer-id" VALUE="<%=customer.getID()%>">
- <input name=submit style="HEIGHT: 24px; WIDTH: 90px;" type=submit value="Buy Licenses">
- </form>
- </td>
- <%
- }
- %>
- </tr>
- <%
- }
- %>
- </table>
- <%
- }
- %>
-
- <br>
- <table width=100% border=0>
- <tr>
- <td align="center">
- <a href="<%=JSPRes.path%>/main/customers/acedit.jsp?key=new" alt="Create New Customer">New Customer</A>
- </td>
- </tr>
- </table>
-
- <!-- FOOTER -->
- <jsp:include page="../footer.jsp" flush="true"/>
-